package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RoutePlanningMapper;
import com.ruoyi.system.domain.RoutePlanning;
import com.ruoyi.system.service.IRoutePlanningService;

/**
 * 路径规划Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-24
 */
@Service
public class RoutePlanningServiceImpl implements IRoutePlanningService 
{
    @Autowired
    private RoutePlanningMapper routePlanningMapper;

    /**
     * 查询路径规划
     * 
     * @param routeId 路径规划主键
     * @return 路径规划
     */
    @Override
    public RoutePlanning selectRoutePlanningByRouteId(Long routeId)
    {
        return routePlanningMapper.selectRoutePlanningByRouteId(routeId);
    }

    /**
     * 查询路径规划列表
     * 
     * @param routePlanning 路径规划
     * @return 路径规划
     */
    @Override
    public List<RoutePlanning> selectRoutePlanningList(RoutePlanning routePlanning)
    {
        return routePlanningMapper.selectRoutePlanningList(routePlanning);
    }

    /**
     * 新增路径规划
     * 
     * @param routePlanning 路径规划
     * @return 结果
     */
    @Override
    public int insertRoutePlanning(RoutePlanning routePlanning)
    {
        return routePlanningMapper.insertRoutePlanning(routePlanning);
    }

    /**
     * 修改路径规划
     * 
     * @param routePlanning 路径规划
     * @return 结果
     */
    @Override
    public int updateRoutePlanning(RoutePlanning routePlanning)
    {
        return routePlanningMapper.updateRoutePlanning(routePlanning);
    }

    /**
     * 批量删除路径规划
     * 
     * @param routeIds 需要删除的路径规划主键
     * @return 结果
     */
    @Override
    public int deleteRoutePlanningByRouteIds(Long[] routeIds)
    {
        return routePlanningMapper.deleteRoutePlanningByRouteIds(routeIds);
    }

    /**
     * 删除路径规划信息
     * 
     * @param routeId 路径规划主键
     * @return 结果
     */
    @Override
    public int deleteRoutePlanningByRouteId(Long routeId)
    {
        return routePlanningMapper.deleteRoutePlanningByRouteId(routeId);
    }
}
